package com.quartz.mq.business.dao;

import com.quartz.mq.business.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 通用 实现
 */
@Repository
public interface AccountDao extends JpaRepository<Account, Long> {

    List<Account> findByName(String name);

    void deleteById(Long id);
}
